#!/bin/bash

ASCII=`find Site -name *.txt | grep -v \.hg | sort`
MENU="Site/Pages/menu.html"

rm $MENU

cat pre >> $MENU


for file in $ASCII
do
	asciidoc -b html5 -a linkcss $file
	page=`basename $file .txt`
	
	echo "<a href='$page.html' target=\"mainFrame\">$page</a>" >> $MENU
	
done

cat su >> $MENU

